package innerclass.staticclass;

public class Outer {
    private String name;
    private int age;
    private static String gender;

    public static class Inner {
        public void test() {
            Outer outer = new Outer();
            outer.age = 10;
            outer.gender = "male";
            outer.name = "John";
            Outer.gender = "female";
            System.out.println(outer.name+":"+outer.age+":"+outer.gender);
        }
    }

    public static void main(String[] args) {
        Inner inner = new Inner();
        inner.test();
    }

}
